package net.towee.model.group.impl;

import java.util.Date;

import net.towee.model.account.AccountIdentity;
import net.towee.model.group.GroupEnterRequest;

import com.google.code.morphia.annotations.Embedded;
import com.google.code.morphia.annotations.Reference;

@Embedded
public class GroupEnterRequestImpl implements GroupEnterRequest {
	@Reference private AccountIdentity condidate;
	private Date creationDate;
	
	public GroupEnterRequestImpl(){}
	public GroupEnterRequestImpl(AccountIdentity id){
		this.condidate = id;
		this.creationDate = new Date();
	}
	
	@Override
	public AccountIdentity getCondidate() {
		return condidate;
	}

	@Override
	public Date getCreationDate() {
		return creationDate;
	}

}
